function result= basicStat( m )
	#Sort data
	b=sort(m);
	numRows=length(b(:,1));
	if ( rem(numRows ,2) )
		aux= (numRows+1)/2;
		medianaX=b(aux,1);
		medianaY=b(aux,2);
	else
		aux= (numRows)/2;
		medianaX=(b(aux,1)+b(aux+1,1))/2;
		medianaY=(b(aux,2)+b(aux+1,2))/2;
	endif
	minX=b(1,1);
	maxX=b(numRows,1);

	minY=b(1,2);
	maxY=b(numRows,2);

	c1=ceil(numRows/4);
	c3=ceil((numRows*3)/4);

	c1X=b(c1,1);
	c1Y=b(c1,2);

	c3X=b(c3,1);
	c3Y=b(c3,2);

	result=[medianaX c1Y minY maxY c3Y medianaY;
	medianaY c1X minX maxX c3X medianaX];
endfunction
